import React, { Component } from 'react';
import { Button, Result } from 'antd-mobile';
import './OrderEnd.scss'

class OrderEnd extends Component<any,any> {
    render() {
        return (
            <div className='orderend'>
                <Result
                    status='success'
                    title='支付成功'
                    description='已经成功下单，后续请跟踪订单查看详情'
                />
               
                <Button style={{width:'96%',marginTop:'20px'}}
                onClick={()=>{this.props.history.replace('/index/home')}}
                 color='primary'
                 >返回首页</Button> 
                 <Button
                 onClick={()=>{this.props.history.replace('/orderlist')}}
                  style={{width:'96%',marginTop:'20px'}} color='danger'>查看订单</Button>
                
                
            </div>
        );
    }
}

export default OrderEnd;